Skip to content

fix: replace deprecated absoluteFillObject in ActivityIndicator#4890

Open
dhanushpani wants to merge 1 commit intocallstack:mainfrom
dhanushpani:fix/activity-indicator-double-spinner
Open

fix: replace deprecated absoluteFillObject in ActivityIndicator#4890
dhanushpani wants to merge 1 commit intocallstack:mainfrom
dhanushpani:fix/activity-indicator-double-spinner

Conversation

@dhanushpani
Copy link
Copy Markdown

Summary

  • Replace deprecated StyleSheet.absoluteFillObject with StyleSheet.absoluteFill in ActivityIndicator
    component
  • Fixes double spinner showing on Buttons with loading={true} on React Native 0.85+

Bug

On RN 0.85, StyleSheet.absoluteFillObject is deprecated. This causes the two half-circle layers in
ActivityIndicator to stack vertically instead of overlapping, resulting in two visible spinners.

Fix

Replaced StyleSheet.absoluteFillObject with StyleSheet.absoluteFill in
src/components/ActivityIndicator.tsx. Both resolve to the same styles (position: absolute, top/left/bottom/right: 0), but absoluteFill is the supported API.

Test plan

  • All 901 existing tests pass
  • Verified Button with loading={true} shows a single spinner

@callstack-bot
Copy link
Copy Markdown

Hey @dhanushpani, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@dhanushpani dhanushpani marked this pull request as draft April 9, 2026 11:42
@dhanushpani dhanushpani marked this pull request as ready for review April 9, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants